<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="packageDetailAvailable.title"/></title>
    <meta name="heading" content="<fmt:message key='packageDetailAvailable.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>
     
</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpAddPackageDetail.html?decorate=false'/>"
           title="Help material purchase"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>
<table>

    <tr>
       <td colspan="50%">
       <fieldset>
            <legend><fmt:message key="reportMaterialGral.typeReport"/></legend>
            <table>
                <tr><td>
                    <input type="button" onclick="location.href='<c:url value="/packageDetailsChoice.html?packageDetailChoice=rollo"/>'"
                       value="<fmt:message key="button.rollo"/>"
                 </td></tr>
            </table>

        </fieldset>
    </td>
    <td>
         <fieldset>
            <legend><fmt:message key="currentCut.currentCut"/></legend>
            <table class="tableGrey" id="currentCut" >
            <thead>
                <tr>
                    <th class="hidden"/>
                    <th><fmt:message key="cutProcess.id"/></th>
                    <th><fmt:message key="cutProcess.initDate"/></th>
                    <th><fmt:message key="cutProcess.endDate"/></th>
                    <th><fmt:message key="cutProcess.employee.fullName"/></th>
                    <th class="hidden"/>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><s:property id="cutProcess.id" value="cutProcess.id"/></td>
                    <td><s:property id="cutProcess.initDate" value="cutProcess.initDate"/></td>
                    <td><s:property id="cutProcess.endDate" value="cutProcess.endDate"/></td>
                    <td><s:property id="cutProcess.employee.fullName" value="cutProcess.employee.fullName"/></td>
                </tr>
            </tbody>
            </table>
        </fieldset>
    </td>
    </tr>
</table>


<input type="button" onclick="location.href='<c:url value="/donePackageDetailReview.html"/>'"
           value="<fmt:message key="button.done"/>"/>

<c:out value="${buttons}" escapeXml="false" />
<c:if test="${packageDetailChoice != null}">
    <s:hidden key="id" value="%{id}"/>
<display:table name="packageDetails" class="table" id="packageDetails" export="false" requestURI="" pagesize="10">
    
    <display:column titleKey="packageDetail.modifie" href="addQuantityPackageDetail.html" paramId="idPd"
                    paramProperty="id">
        <fmt:message key="packageDetail.modifie"/>
    </display:column>
    <display:column property="code" sortable="true" titleKey="packageDetail.code"/>
    <display:column property="packageName" sortable="true" titleKey="packageDetail.packageName"/>
    <display:column property="realQuantity" sortable="true" titleKey="packageDetail.realQuantity"/>
    <display:column property="stock" sortable="true" titleKey="packageDetail.stock"/>

</display:table>
</c:if>